remove empty lines from test files
move flash registration to top of class