add resource and post for test