more client-side friendly unit test