finally worked out how karma tests work