Added getById function and path to test it