Add getPrice function.
Add getPrice test.