Improved abstractFn fail message and added test.