Refactored some tests and added tests for bower files.