adding tests + test pipeline and new affordance code