refactored at45 test code to be in a separate file.