Moved testing code to test folder.