restructuring for effective unit testing
unittest for projlyap: fixes #3