notecard refactor passed card obj added testing