Adding --tests flag to run beaver unit tests from cli.