fixed some failing sam1.3 tests

Please, review it 
Thanks