TESTS: added tests for spm_realign core (back-end) functions