Adds unit test for parsing of back command
Implements back command