change db design for create test table, modify create and store functions for test controller, added route for test resource