cherry picked tests from https://github.com/sjasmplus/sjasmplus repository
