change test resources dir getter to resolve from realpath of __file__