new test for access control tests
Modified the page() method in Factory to correctly count the overall number of results up to a certain limit (5000 objects at the moment).
Up to this number, the result_count will be accurate. Above this number, the unfiltered result_count (without security check) will be returned.
Fixed some bugs.