added unittest for sub with three registers of which one sp