refactored test to use har in an assertion