added test for bug #251

tests for https://github.com/osiam/server/pull/253