added simple example helper methods and enhanced tests