move $state mock into test folder