Directly link against gtest object file instead of library
Add simple flash testing tool