test for redmine task #1908

This tests the search function on posteriors. The test works but I'm not sure if this is really the right way to test an ajax request...