fixed mistake in promise controller test