moved to testing. fixed few bugs;added spring test configuration