Added some tests for products page and image getting for MainController. Renamed some methods in dao for convenience purposes.