Minor changes to return types/command handling

Added end to end tests to runtests.jl