Made a couple of tweaks to visibility and storing limit in a session variable as well as fixing tests
Fixed Junit test errors