bug fixes
added rake for test env