add beans for test, add more test cases