JC: added integration test. fixed bug in rspec. refecting views. better date format. all spec passes.