added search for pins
added standard pagination to test
fixed bugs with pagination