more tests and command line entry point