added test and CLI scaffolding