added test, seems fine