Fixing member? method in endpoints and added some tests.