Updated test case for issue #501. Though the test case passes the object is not properly persisted in the database.