[issue-371] Use wp action in admin test
[issue-371] Return options instead of assigning them to static var