token patterns implemented
added tests module for debugging purposes