Refactor Sample resource tests