Added tests for record command
Completed list command and added tests against it