tests - use moment() as workaround for tests
move tests to plugin/tests

add parseAuthenticate tests