ticket 2: fixes prev.commit. Adding test specs