Add function to run common tests in shell
Only load erlang modules if in a shell env