Moved testing code into testing directory