removed main adn added test to a place where eclipse can handle it