added test case and remove $ prefix. Close #1