Basic calculator implemented with some unit tests