fixed startup test
changed code to support haystack 2.0.x
fixed router issue