updated codes for testing framework
added database migration scripts for test cases
added database config for testing, shall be using separate database for testing
added factorymuff bundle to create test mock objects
removed redundant test files