Add tests, fix BoundedRational bugs

Add back some basic test infrastructure from the KitKat calculator,
updated to make it work with the current code base and asynchronous
expression evaluation.

Add BoundedRational tests, designed to check that we get all the
corner cases, particularly for degree-based trig functions, right.

Fix a couple of BoundedRational typos that caused these tests to fail.

Change-Id: I81d8f3d9bde6aa6c20f9958eabd62979babeff5b
diff --git a/proguard.flags b/proguard.flags
new file mode 100644
index 0000000..dfd6702
--- /dev/null
+++ b/proguard.flags
@@ -0,0 +1,4 @@
+# Some small BoundedRational methods like equals() are not used by the
+# calculator, but crucial for testing.
+
+-keepclassmembers class com.android.calculator2.BoundedRational { *; }