Refactored test to use scrut