added test and prepared to publish