adds an assertion library for kubernetes objects for easier testing. fixes #3271
added helper method and used ${basedir} to fix PR