added test method for getkeypoints