Moved test cases to a separate file.