TEST: adding tests for the affine and similarity cases