test against snapshot